const express = require('express');
const router = express.Router();
const petController = require('../controllers/petController');
const { authenticate } = require('../middleware/auth');

// 所有路由都需要认证
router.use(authenticate);

router.get('/', petController.getPetInfo);
router.post('/feed', petController.feedPet);
router.post('/play', petController.playWithPet);
router.put('/rename', petController.renamePet);

module.exports = router;

